package com.example.luke.shengdangxiaoattendance.Service;

import android.app.Service;
import android.content.Intent;
import android.os.IBinder;
import android.support.annotation.Nullable;
import android.support.v4.content.LocalBroadcastManager;

import com.example.luke.shengdangxiaoattendance.Model.Setting;
import com.example.luke.shengdangxiaoattendance.Util.GlobalFunction;

/**
 * Created by luke on 8/31/17.
 */

public class AppService extends Service {
    @Nullable
    @Override
    public IBinder onBind(Intent intent) {
        return null;
    }

    @Override
    public void onDestroy() {
        super.onDestroy();
    }

    @Override
    public void onTaskRemoved(Intent rootIntent) {



        Intent intent=new Intent("custom-message");
       // GlobalFunction.printTextByTag("ccdd123");

        LocalBroadcastManager.getInstance(this).sendBroadcast(intent);

        super.onTaskRemoved(rootIntent);


    }
}
